
import 'package:flutter/material.dart';
import 'package:flutter_chen_common/toast/src/overlay_observer.dart';
import 'package:flutter_chen_common/toast/src/toast.dart';

import 'routers/index.dart';

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      builder: ComToastBuilder(),
      navigatorObservers: [ComToastNavigatorObserver()],
      theme: ThemeData(
        primarySwatch: Colors.blue
      ),
      initialRoute: RoutePath.home,
      onGenerateRoute: Routes.onGenerateRoute,
    );
  }
}
